import { User } from '@/api/user/types';
/**
 * 评论查询参数
 */
export interface CommentQuery extends PageQuery {
  blogId?: number;
}

/**
 * 评论详细
 */
export interface CommentPageVO {
  id?: number;

  blogId?: number;

  blogTitle?: string;

  parentId?: number;

  uid?: number;

  address?: string;

  content?: string;

  likes?: number;

  contentImg?: string;

  createTime?: Date;

  status?: string;

  enabled?: boolean;
}

/**
 * 评论分页项类型声明
 */
export type CommentPageResult = PageResult<CommentPageVO[]>;

/**
 * 评论对象
 */
export interface CommentVO {
  id?: number | string;

  blogId?: number | string;

  blogTitle?: string;

  parentId?: number | string;

  uid?: number | string;

  address?: string;

  content?: string;

  likes?: number;

  contentImg?: string;

  reply?: [];

  user?: User;

  createTime?: Date;

  status?: string;

  enabled?: boolean;
}
